import React from 'react';
import ReactDOM from 'react-dom';
import HookApp from './hookApp';
import AppClass from './appClass';
import ThemesContext from './context';
import {themes} from './theme.config';
import EventDemo from './event';

ReactDOM.render(
    <React.StrictMode>
        <ThemesContext.Provider value={themes.red}>
            <div>
                {/* <h2>hook</h2>
                <HookApp flag={true}></HookApp>
                <h2>class</h2>
                <AppClass></AppClass> */}
                <EventDemo></EventDemo>
            </div>
        </ThemesContext.Provider>
    </React.StrictMode>,
  document.getElementById('root')
);
